<?php

class myUser extends sfBasicSecurityUser
{
	protected $user = null;
	
	public function getID()
	{
		return $this->getAttribute('id', -1);
	}
	
	public function getUserObject()
	{
		if (is_null($this->user))
			$this->user = Doctrine::getTable('User')->find($this->getID());
		
		return $this->user;
	}
}
